#pragma once
#include <QtNetwork/QtNetwork>
#include <QtGui/QIcon>
#include <QtGui/QTreeWidget>
//#include "ui_feig.h"


struct userViewInfo
{
	QString useranme;
	QString groupname;
	QHostAddress	IP;
	int port;
	QIcon   icon;
	QString ComputerName;
	QString LoginName;
	QString qianming;
};

class usermng:public QObject
{
	Q_OBJECT

	QMap<QString,userViewInfo> _alluser;
	QSet<QString> _allgroup;
public:
	usermng(void);
	~usermng(void);
	void adduser(QTreeWidget* wid, userViewInfo info);
	userViewInfo getUser(QString& ip);
};
